<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .body{
            background-color: aqua;
        }
        .body2{
            background-color: antiquewhite;
        }
        .body3{
            background-color: red;
        }
        .diva{
            border-radius: 50%;
            text-align: center;
            width: 20px;
            height: 20px;
            background-color: white;
            margin-left: 5px;
            float: left;
        }
        .div2{
            width: 150px;
            height: 20px;
            position: relative;
            left: 220px;
            top: -40px;
        }
    </style>
    <script src="../js/test5.js"></script>
</head>
<body class="body">
    <input type="button" value="改变背景颜色" onclick="chg()">
    <br>
    <input type="button" value="计算圆的面积" onclick="calArea(1)">
    <input type="button" value="计算三角形的面积" onclick="calArea(2)">
    <input type="button" value="计算长方形的面积" onclick="calArea(3)">
    <div id="info"></div>

    <img id="img" src="../images/q01.jpg" onclick="pic(0)" alt="">
    <div class="div2">
        <div class="diva" onclick="but(1)">1</div>
        <div class="diva" onclick="but(2)">2</div>
        <div class="diva" onclick="but(3)">3</div>
        <div class="diva" onclick="but(4)">4</div>
        <div class="diva" onclick="but(5)">5</div>
        <div class="diva" onclick="but(6)">6</div>
    </div>
</body>
</html>